<template>
  <div class="logo-container" v-if="!collapsed">
    <img src="@/assets/images/测试用例.png" alt="" class="logo-img" />
    <h1 class="logo-title">TestFlow</h1>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

// 定义 props
defineProps({
  collapsed: {
    type: Boolean,
    default: false,
  },
});
</script>

<style scoped>
.logo-container {
  display: flex;
  align-items: center;
  height: 85px;
  line-height: 85px;
  overflow: hidden;
  white-space: nowrap;
}

.logo-container .logo-img {
  color: #fff;
  height: 30px;
  width: 28px;
  margin-left: 15px;
  margin-right: 5px;
}

.logo-container .logo-title {
  color: #fff;
  margin-top: 20px;
  font-size: 28px;
  font-weight: 500;
  font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
  vertical-align: middle;
}
</style>
